package com.baomidou.springboot.entity.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.springboot.entity.CartItem;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data @Accessors(chain = true)
public class CartItemVO {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long cartId;

    private String productId;

    private Integer quantity;

    private BigDecimal price;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateAt;

    private String productName;
    private String productPrice;
    private String productReferral;
    private Integer productNum;
    private String productTag;
    private String productImg;
}
